package com.ly.cloud.api;

import com.ly.common.core.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * url服务-feign
 * @author luoyun
 * @Date: 2025/6/10 20:01
 * @Note:
 */
@FeignClient(contextId = "sysTestUrlRemoteApi", value = "sysTestUrlRemoteApi", url = "http://localhost:7002")
public interface ITestUrlApi {

    /**
     * 获取消息：http://localhost:7002/test11/demo/getMessage?name=123
     */
    @GetMapping("/test11/demo/getMessage")
    R getMessage(@RequestParam("name") String name);
}
